#
# Copyright (C) 2015-2016 Allwinner
#
# This is free software, licensed under the GNU General Public License v2.
# See /build/LICENSE for more information.

define KernelPackage/net-ap6212
  SUBMENU:=$(WIRELESS_MENU)
  TITLE:=ap6212 support
  DEPENDS:=@TARGET_astar_parrot +ap6212-firmware
  FILES:=$(LINUX_DIR)/drivers/net/wireless/bcmdhd/bcmdhd.ko
  AUTOLOAD:=$(call AutoProbe,bcmdhd)
endef

define KernelPackage/net-ap6212/description
 Kernel modules for Broadcom AP6212  support
endef

$(eval $(call KernelPackage,net-ap6212))

define KernelPackage/net-rtl8723ds
  SUBMENU:=$(WIRELESS_MENU)
  TITLE:=rtl8723ds support
  FILES:=$(LINUX_DIR)/drivers/net/wireless/rtl8723ds/8723ds.ko
  AUTOLOAD:=$(call AutoProbe,8723ds)
endef

define KernelPackage/net-rtl8723ds/description
 Kernel modules for Realtek rtl8723ds  support
endef

$(eval $(call KernelPackage,net-rtl8723ds))

define KernelPackage/apds9960
  SUBMENU:=$(INPUT_MODULES_MENU)
  TITLE:=apds9960 support
  FILES:=$(LINUX_DIR)/drivers/input/misc/apds9960.ko
  AUTOLOAD:=$(call AutoProbe,apds9960)
endef

define KernelPackage/apds9960/description
 Kernel modules for apds9960  support
endef

$(eval $(call KernelPackage,apds9960))

define KernelPackage/st_7789v
  SUBMENU:=$(VIDEO_MENU)
  TITLE:=st_7789v support
  FILES:=$(LINUX_DIR)/drivers/video/syscopyarea.ko
  FILES+=$(LINUX_DIR)/drivers/video/sysfillrect.ko
  FILES+=$(LINUX_DIR)/drivers/video/sysimgblt.ko
  FILES+=$(LINUX_DIR)/drivers/video/fb_sys_fops.ko
  FILES+=$(LINUX_DIR)/drivers/video/fbtft/fbtft.ko
  FILES+=$(LINUX_DIR)/drivers/video/fbtft/fbtft_device.ko
  FILES+=$(LINUX_DIR)/drivers/video/fbtft/fb_st7789v.ko
  AUTOLOAD:=$(call AutoProbe,syscopyarea sysfillrect sysimgblt fb_sys_fops fbtft fbtft_device fb_st7789v)
endef

define KernelPackage/st_7789v/description
 Kernel modules for st_7789v  support
endef

$(eval $(call KernelPackage,st_7789v))
